﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kugar.Core.Security.Permission
{
    /// <summary>
    ///     用户权限信息
    /// </summary>
    public class PermissionUserInfo
    {
        /// <summary>
        ///     用户所在分组的权限
        /// </summary>
        public PermissionGroupInfo GroupPermission { set; get; }

        /// <summary>
        ///     用户临时授权的权限
        /// </summary>
        public PermissionInfoAttribute[] SpecialPermission { set; get; }

        public bool HasPermission(string actionName)
        {
            return true;
        }

        public bool HasPermission(PermissionInfoAttribute permissionOperationInfo)
        {
            return true;
        }

        public PermissionInfoAttribute GetPermissionByActionName(string actionName)
        {
            return null;
        }

    }
}
